from django.contrib import admin
from .models import *

class GoodsSKUBeanAdmin(admin.ModelAdmin):
    list_display = ['id','name','price','unit','surplus','sale_count','image','status']
    list_display_links = ['name']
    list_editable = ['price','unit','surplus','sale_count']

class GoodsKindBeanAdmin(admin.ModelAdmin):
    list_display = ['id','name','logo','image']

class GoodsSPUBeanAdmin(admin.ModelAdmin):
    list_display = ['id','name','detail']

admin.site.register(GoodsSKUBean,GoodsSKUBeanAdmin)
admin.site.register(GoodsKindBean,GoodsKindBeanAdmin)
admin.site.register(GoodsSPUBean,GoodsSPUBeanAdmin)